package com.hksj.Intelligentmanagement.auth.mapper;

import com.hksj.Intelligentmanagement.auth.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hksj.Intelligentmanagement.auth.vo.MenuVo;
import com.hksj.Intelligentmanagement.auth.vo.RoleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色表 dao 接口
 * @author chenxingqing
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<MenuVo> listRoleMenu(@Param("roleId") String roleId);

    List<RoleVo> listRole(@Param("name") String name,@Param("roleKey") String roleKey,@Param("status") String status);

    List<RoleVo> listUserRole(@Param("userId")String userId);
}
